﻿<Page x:Class="MindFactorial.LaunchPoint.Console.LaunchPad"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     >
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.51,0.04" StartPoint="0.515,0.982">
                <GradientStop Color="Blue" Offset="0"/>
                <GradientStop Color="#00FFFFFF" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <my:XamCarouselPanel Name="ctrl_panel" 
                             xmlns:my="clr-namespace:Infragistics.Windows.Controls;assembly=Infragistics3.Windows.v7.1" Margin="0,100,0,0">
            <my:XamCarouselPanel.ViewSettings >
                <my:CarouselViewSettings  
                    IsListContinuous="True" ItemPath="{Binding ElementName=ovalPath, Mode=OneWay}" ItemPathAutoPad="True" ItemPathPadding="0,0,0,200" ItemSize="200,200" ItemPathHorizontalAlignment="Stretch" ItemPathVerticalAlignment="Stretch" ItemsPerPage="5" UseOpacity="True" UseZOrder="True" AutoScaleItemContentsToFit="True" ItemPathStretch="Fill" ItemTransitionStyle="AdjustSizeAndOpacity" ItemVerticalScrollBarVisibility="Disabled" ItemHorizontalScrollBarVisibility="Disabled" AllowDrop="True" IsNavigatorVisible="True">
                    <my:CarouselViewSettings.ScalingEffectStops>
                        <my:ScalingEffectStopCollection>
                            <my:ScalingEffectStop Value="0.3"/>
                            <my:ScalingEffectStop Offset="0.35" Value="0.7"/>
                            <my:ScalingEffectStop Offset="0.44" Value="1.5"/>
                            <my:ScalingEffectStop Offset="0.6" Value="0.4"/>
                            <my:ScalingEffectStop Offset="0.8" Value="0.3"/>
                            <my:ScalingEffectStop Offset="1"/>
                        </my:ScalingEffectStopCollection>
                    </my:CarouselViewSettings.ScalingEffectStops>
                    <my:CarouselViewSettings.OpacityEffectStops>
                        <my:OpacityEffectStopCollection>
                            <my:OpacityEffectStop/>
                            <my:OpacityEffectStop Offset="0.35" Value="0.5"/>
                            <my:OpacityEffectStop Offset="0.44" Value="1"/>
                            <my:OpacityEffectStop Offset="0.6" Value="0.5"/>
                            <my:OpacityEffectStop Offset="0.8" Value="0.2"/>
                            <my:OpacityEffectStop Offset="1"/>
                        </my:OpacityEffectStopCollection>
                    </my:CarouselViewSettings.OpacityEffectStops>
                    <my:CarouselViewSettings.ZOrderEffectStops>
                        <my:ZOrderEffectStopCollection>
                            <my:ZOrderEffectStop/>
                            <my:ZOrderEffectStop Offset="0.4" Value="1"/>
                            <my:ZOrderEffectStop Offset="1"/>
                        </my:ZOrderEffectStopCollection>
                    </my:CarouselViewSettings.ZOrderEffectStops>
                </my:CarouselViewSettings>
            </my:XamCarouselPanel.ViewSettings>
        </my:XamCarouselPanel>
        <StackPanel RenderTransformOrigin="0.5,0.5" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
            <StackPanel.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="-9"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </StackPanel.RenderTransform>
            <Border BorderThickness="0" Name="myVisual" Height="100" Padding="0"  >
                <Label Content="IPO-x"  FontSize="80" VerticalAlignment="Bottom" Margin="0" Padding="0" Style="{DynamicResource LabelStyle1}" >
                    <Label.Resources>
                        <Style x:Key="LabelStyle1" TargetType="{x:Type Label}">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                            <Setter Property="Background" Value="Transparent"/>
                            <Setter Property="Padding" Value="0"/>
                            <Setter Property="HorizontalContentAlignment" Value="Left"/>
                            <Setter Property="VerticalContentAlignment" Value="Top"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="{x:Type Label}">
                                        <Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                                            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" RecognizesAccessKey="True" Height="81.563"/>
                                        </Border>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsEnabled" Value="false">
                                                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                                            </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </Label.Resources>
                </Label>
            </Border>
            <Border Height="100" Opacity="0.025" Margin="0,10,0,0">
                <!--<Border.OpacityMask>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0" Color="Black"/>
                        <GradientStop Offset=".1" Color="Transparent"/>
                    </LinearGradientBrush>
                </Border.OpacityMask>-->
                <Border.Background>
                    <VisualBrush Visual="{Binding ElementName=myVisual}">
                        <VisualBrush.Transform>
                            <ScaleTransform ScaleX="1" ScaleY="-1"  CenterY="63" />
                        </VisualBrush.Transform>
                    </VisualBrush>
                </Border.Background>
            </Border>
        </StackPanel>
    </Grid>
</Page>
